package com.hd.core.project.module.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hd.core.framework.web.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 文明宿舍实体-对应数据库表(module_teacher_civilized_dormitory)
 * 
 * <br/>
 * @since JDK 1.8
 * @version  V1.0
 * @author RichardTang 
 * @date: 2018年9月4日
 * @package com.hd.core.project.module.domain
 * @copyright:Copyright (c) 2018, 1245811923@qq.com All Rights Reserved.
 */
@TableName("module_civilized_dormitory") 
public class CivilizedDormitory extends BaseEntity{

	private static final long serialVersionUID = 1L;

	/** 序号 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	
	/** 宿舍号 */
	private String dormitoryNumber;
	
	/** 对应的日期 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date belongDate;
	
	/** 备注 */
	@TableField(exist = true)
	private String remark;
	
	/** 宿舍成员 **/
	@TableField(exist = false)
	private List<Student> dormitoryMenber;
	
	public CivilizedDormitory() {
		super();
	}

	public CivilizedDormitory(String dormitoryNumber, Date belongDate, String remark) {
		super();
		this.dormitoryNumber = dormitoryNumber;
		this.belongDate = belongDate;
		this.remark = remark;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDormitoryNumber() {
		return dormitoryNumber;
	}

	public void setDormitoryNumber(String dormitoryNumber) {
		this.dormitoryNumber = dormitoryNumber;
	}

	public Date getBelongDate() {
		return belongDate;
	}

	public void setBelongDate(Date belongDate) {
		this.belongDate = belongDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public List<Student> getDormitoryMenber() {
		return dormitoryMenber;
	}

	public void setDormitoryMenber(List<Student> dormitoryMenber) {
		this.dormitoryMenber = dormitoryMenber;
	}
	
}
